﻿using Vra.DataAccess.Attributes;

namespace Vra.DataAccess.Entities
{
	[Table("ARTIST")]
	public class Artist
	{
		[Column(IsIdentity = true)]
		public int ArtistId;
		[Column]
		public string Name;
		[Column]
		public decimal? BirthYear;
		[Column]
		public decimal? DeceaseYear;
		[Column(Name = "NatID")]
		public int? NationId;

		public override string ToString()
		{
			return string.Format("[{0}] {1} ({2}-{3})", ArtistId, Name, BirthYear, DeceaseYear);
		}

		public Artist()
		{
			
		}

		public Artist(int id)
		{
			ArtistId = id;
		}
	}
}
